package com.pubinfo.passbook.common.model.eop;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author litiewang
 * @Date 2022/7/28 14:53
 * @Version 1.0
 */
@NoArgsConstructor
@Data
public class OrderResult {
  @JSONField(name = "msghead")
  private MsgheadDTO msghead;
  @JSONField(name = "msgbody")
  private MsgbodyDTO msgbody;
  
  @NoArgsConstructor
  @Data
  public static class MsgheadDTO {
    @JSONField(name = "result_msg")
    private String resultMsg;
    @JSONField(name = "result_code")
    private String resultCode;
    @JSONField(name = "reqId")
    private String reqId;
  }
  
  @NoArgsConstructor
  @Data
  public static class MsgbodyDTO {
    @JSONField(name = "orderNum")
    private String orderNum;
    @JSONField(name = "resultCode")
    private String resultCode;
    @JSONField(name = "resultMsg")
    private String resultMsg;
    @JSONField(name = "resultObject")
    private Object resultObject;
    @JSONField(name = "success")
    private Boolean success;
  }
}
